package com.service;

import com.pojo.GroupOrder;
import com.util.ServerResponse;

/**
 * Created with IntelliJ IDEA.
 * User: HL
 * Date: 2020/4/16
 * Time: 12:00
 * Description: No Description
 */
public interface GroupPayService {
    /**
     * 新增订单
     * @param groupOrder
     */
    public ServerResponse saveOrder(GroupOrder groupOrder);

    /**
     *
     * @Title: OrdersService.java
     * @Package com.sihai.service
     * @Description: 修改订单状态，改为 支付成功，已付款; 同时新增支付流水
     */
    public void updateOrderStatus(Integer orderId, String alpayFlowNum, String paidAmount);

    /**
     * 获取订单
     * @param orderId
     * @return
     */
    public GroupOrder getOrderById(Integer orderId);
}
